package com.etao.restaurantcore.exception;



/**
 * Created by xuyulong on 2016/3/30.
 */
public class BaseException extends Exception {
    private int statusCode;
    
    public BaseException() {
    }
    public BaseException(int statusCode) {
        this.statusCode = statusCode;
    }

    public BaseException(String message) {
        super(message);
    }
    public BaseException(String message,int statusCode){
        super(message);
        this.statusCode = statusCode;
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
	public int getStatusCode() {
		return statusCode;
	}
	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}
}
